package com.example.clxy.dao;

import com.example.clxy.entity.Sycourse;
import com.example.clxy.result.business.PageResult.SycoursePageResult;
import com.example.clxy.result.business.SycourseResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SycourseMapper {
    int deleteByPrimaryKey(String sycourseid);

    int insert(Sycourse record);

    int insertSelective(Sycourse record);

    Sycourse selectByPrimaryKey(String sycourseid);

    int updateByPrimaryKeySelective(Sycourse record);

    int updateByPrimaryKey(Sycourse record);

    List<SycoursePageResult> getSycourseList(@Param("sycoursecode") String sycoursecode,
                                             @Param("sycoursename") String sycoursename,
                                             @Param("credit") String credit,
                                             @Param("sycourseintro") String sycourseintro,
                                             @Param("sycoursetype") String sycoursetype,
                                             @Param("sycourseunit")  String sycourseunit,
                                             @Param("begin") int begin,
                                             @Param("end")  int end,
                                             @Param("pagesize")  int pagesize);

    int deleteSycourse(String sycourseid);

    SycourseResult getSycourseById(String sycourseid);

    String[] getAllCourseName();
}